package com.wangyadong.hobby.schedule.jobtask.jvm;

import java.io.Serializable;

/**
 * <p>
 *
 * @author <714037465@qq.com>
 * @since 2018/11/2315:34
 **/
public class OverLoad {

    public static void sayHello(Object arg) {
        System.out.println("hello object");
    }

    public static void sayHello(int arg) {
        System.out.println("hello int");
    }

    public static void sayHello(long arg) {
        System.out.println("hello long");
    }

    public static void sayHello(Character arg) {
        System.out.println("hello Character");
    }

    public static void sayHello(char arg) {
        System.out.println("hello char");
    }

    public static void sayHello(char... arg) {
        System.out.println("hello Character[]");
    }

    public static void sayHello(Serializable arg) {
        System.out.println("hello Serializable");
    }

    /**
     * int->long->float->double
     * <p>
     * char->int->long->Character->Serializable->Object->Character[]
     *
     * @param args
     */
    public static void main(String[] args) {
        sayHello("22");
    }
}
